package com.tourlaid.mamagerment.mapper

import com.tourlaid.mamagerment.dto.StoreListDto
import com.tourlaid.mamagerment.entity.Store
import org.apache.ibatis.annotations.Param

/**
 * Created by xiaoyongge on 2017/7/19.
 */

interface StoreMapper {

    fun getById(id: Long): Store;

    fun insert(record: Store);

    fun queryForList(@Param("searchContent") searchContent: String?, @Param("storeType") storeType: Int?,
                     @Param("cityName") cityName: String?, @Param("area") area: String?,
                     @Param("district") district: String?): List<StoreListDto>?

    fun queryHotStore(@Param("cityName") cityName: String): List<Store>

    fun updateThoughtCount(@Param("id") id: Long, @Param("thoughtCount") thoughtCount: Int)

    fun update(newStore: Store)
}